.main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.chatRoom {
  width: 700px;
  height: 500px;
  border: 1px solid #ddd;
  box-shadow: 1px 1px 10px #ddd;
}

.chatRoom .file {
  width: 150px;
  height: 75px;
  border: 1px solid #ddd;
  text-align: center;
}

.chatRoom .file > div:first-child {
  height: 25px;
  line-height: 25px;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chatRoom .file > div:last-child {
  line-height: 50px;
  cursor: pointer;
}

.chatRoom > div {
  height: 50%;
}

.chatRoom > div:first-child {
  height: 50%;
  border-bottom: 1px solid #ddd;
}

.chatRoom > div:first-child .userList {
  padding: 10px 15px;
  overflow: auto;
  height: calc(100% - 30px);
}

.chatRoom > div:first-child .userList img {
  width: 150px;
  height: 75px;
  object-fit: scale-down;
}

.chatRoom > div:first-child .userList > div {
  margin: 20px 0;
}

.chatRoom > div:first-child .userList > div > div {
  margin: 5px 0;
}

.chatRoom > div:first-child .userList .user > div:first-child,
.chatRoom > div:first-child .userList .userRight > div:first-child {
  font-weight: bold;
}

.chatRoom > div:first-child .userList .userRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chatRoom > div:first-child > div:first-child {
  height: 30px;
  border-bottom: 1px solid #ddd;
  line-height: 30px;
  padding: 0 15px;
  font-weight: bold;
}

.chatRoom > div:last-child {
  position: relative;
  padding: 0 15px;
}

.chatRoom > div:last-child .function {
  height: 40px;
  line-height: 40px;
  font-size: 22px;
  display: flex;
}

.chatRoom > div:last-child .function .emoji {
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  top: 35px;
  left: 25px;
  background-color: #fff;
  width: 300px;
  height: 150px;
  overflow-y: auto;
  z-index: 100;
  border: 1px solid #ddd;
  box-shadow: 1px 1px 10px #ddd;
  border-radius: 5px;
}

.chatRoom > div:last-child .function .emoji > div {
  flex: 1;
  cursor: pointer;
}

.chatRoom > div:last-child .function > div {
  margin: 0 5px;
  cursor: pointer;
}

.chatRoom > div:last-child .footer {
  position: absolute;
  bottom: 20px;
  right: 20px;
}
